package com.xhdx.pattern.chain;
/**
 * 客户类角色
 *
 */
public class ChainDemo {

    public static void main(String[] args) {
        Grade smallSoldier = new SmallSoldier();
        Grade bigSoldier = new BigSoldier();
        Grade colonel = new Colonel();

        smallSoldier.setGrade(bigSoldier);
        bigSoldier.setGrade(colonel);

        smallSoldier.handle("报告问题！");
    }

}
